<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ include file="/WEB-INF/include.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="ca.etsmtl.log720.equipe03.beans.InfractionBean" %>
<%@page import="java.util.*" %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title><fmt:message key="title" /></title>
  </head>
  <body>
    <h1><fmt:message key="insererinfractiondossier.heading" /></h1>
    <a href="index.jsp"><fmt:message key="menuprincipal" /></a>
    <br />
    <br />
    <br />
  	<form:form method="post" commandName="selectionInfractions">
	    <table width="100%" border="1">
	      <tr>
	        <th>ID</th>
	        <th>Description</th>
	        <th>Niveau</th>
	      </tr>
	      
	      
	      
	      <c:forEach items="${infractions}" var="infraction" varStatus="inf">
          <tr>
          	<td>
          		<form:checkbox path="infractionsChoisies" id="${infraction.id}" value="${infraction.id}"/> ${infraction.id}
           	</td>
            <td><c:out value="${infraction.description}" /></td>
            <td><c:out value="${infraction.niveau}" /></td>
	      </tr>
          </c:forEach>
	    </table>
	    <br />
	    <input type="submit" value="<fmt:message key="insererinfractiondossier.submit.button" />">
    </form:form>
  </body>
</html>